Optimal. Leaf size=55 \[ \frac{1}{3} a^2 A x^3+\frac{1}{5} b x^5 (2 a B+A b)+\frac{1}{4} a x^4 (a B+2 A b)+\frac{1}{6} b^2 B x^6 \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.103696, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062 \[ \frac{1}{3} a^2 A x^3+\frac{1}{5} b x^5 (2 a B+A b)+\frac{1}{4} a x^4 (a B+2 A b)+\frac{1}{6} b^2 B x^6 \]
Antiderivative was successfully verified.
[In] Int[x^2*(a + b*x)^2*(A + B*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 19.2223, size = 49, normalized size = 0.89 \[ \frac{A a^{2} x^{3}}{3} + \frac{B b^{2} x^{6}}{6} + \frac{a x^{4} \left (2 A b + B a\right )}{4} + \frac{b x^{5} \left (A b + 2 B a\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2*(b*x+a)**2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0184989, size = 50, normalized size = 0.91 \[ \frac{1}{60} x^3 \left (5 a^2 (4 A+3 B x)+6 a b x (5 A+4 B x)+2 b^2 x^2 (6 A+5 B x)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[x^2*(a + b*x)^2*(A + B*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.002, size = 52, normalized size = 1. \[{\frac{{b}^{2}B{x}^{6}}{6}}+{\frac{ \left ({b}^{2}A+2\,abB \right ){x}^{5}}{5}}+{\frac{ \left ( 2\,abA+{a}^{2}B \right ){x}^{4}}{4}}+{\frac{{a}^{2}A{x}^{3}}{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2*(b*x+a)^2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.34826, size = 69, normalized size = 1.25 \[ \frac{1}{6} \, B b^{2} x^{6} + \frac{1}{3} \, A a^{2} x^{3} + \frac{1}{5} \,{\left (2 \, B a b + A b^{2}\right )} x^{5} + \frac{1}{4} \,{\left (B a^{2} + 2 \, A a b\right )} x^{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2*x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.180699, size = 1, normalized size = 0.02 \[ \frac{1}{6} x^{6} b^{2} B + \frac{2}{5} x^{5} b a B + \frac{1}{5} x^{5} b^{2} A + \frac{1}{4} x^{4} a^{2} B + \frac{1}{2} x^{4} b a A + \frac{1}{3} x^{3} a^{2} A \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2*x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.107858, size = 54, normalized size = 0.98 \[ \frac{A a^{2} x^{3}}{3} + \frac{B b^{2} x^{6}}{6} + x^{5} \left (\frac{A b^{2}}{5} + \frac{2 B a b}{5}\right ) + x^{4} \left (\frac{A a b}{2} + \frac{B a^{2}}{4}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2*(b*x+a)**2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.299964, size = 72, normalized size = 1.31 \[ \frac{1}{6} \, B b^{2} x^{6} + \frac{2}{5} \, B a b x^{5} + \frac{1}{5} \, A b^{2} x^{5} + \frac{1}{4} \, B a^{2} x^{4} + \frac{1}{2} \, A a b x^{4} + \frac{1}{3} \, A a^{2} x^{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2*x^2,x, algorithm="giac")
[Out]